home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / SETUP / US / CBUILDER / DATA.Z / CHARTFX.HPP < prev    next >
C/C++ Source or Header  |  1997-02-13  |  22KB  |  460 lines

  1. //----------------------------------------------------------------------------
  2. // ChartFX.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: ChartFX.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef ChartFXHPP
  6. #define ChartFXHPP
  7. //----------------------------------------------------------------------------
  8. #include <Menus.hpp>
  9. #include <Controls.hpp>
  10. #include <OleCtrls.hpp>
  11. #include <Graphics.hpp>
  12. #include <Classes.hpp>
  13. #include <OleCtl.hpp>
  14. #include <OLE2.hpp>
  15. #include <System.hpp>
  16. #pragma warn -par
  17. #pragma warn -hid 
  18. #pragma warn -inl
  19.  
  20. namespace Chartfx
  21. {
  22. //-- type declarations -------------------------------------------------------
  23. typedef void __fastcall (__closure *TChartFXLButtonDblClk)(System::TObject* Sender, short &X, short 
  24.     &Y, short &nSerie, short &nPoint, short &nRes);
  25.  
  26. typedef void __fastcall (__closure *TChartFXRButtonDown)(System::TObject* Sender, short &X, short &Y
  27.     , short &nSerie, short &nPoint, short &nRes);
  28.  
  29. typedef void __fastcall (__closure *TChartFXChangeValue)(System::TObject* Sender, double &dValue, short 
  30.     &nSerie, short &nPoint, short &nRes);
  31.  
  32. typedef void __fastcall (__closure *TChartFXChangeString)(System::TObject* Sender, short &nType, short 
  33.     &nIndex, short &nRes);
  34.  
  35. typedef void __fastcall (__closure *TChartFXChangeColor)(System::TObject* Sender, short &nType, short 
  36.     &nIndex, short &nRes);
  37.  
  38. typedef void __fastcall (__closure *TChartFXChangePalette)(System::TObject* Sender, short &nIndex, short 
  39.     &nRes);
  40.  
  41. typedef void __fastcall (__closure *TChartFXChangeFont)(System::TObject* Sender, short &nIndex, short 
  42.     &nRes);
  43.  
  44. typedef void __fastcall (__closure *TChartFXChangePattern)(System::TObject* Sender, short &nType, short 
  45.     &nIndex, short &nRes);
  46.  
  47. typedef void __fastcall (__closure *TChartFXChangePattPal)(System::TObject* Sender, short &nIndex, short 
  48.     &nRes);
  49.  
  50. typedef void __fastcall (__closure *TChartFXMenu)(System::TObject* Sender, short &wParam, short &nSerie
  51.     , short &nPoint, short &nRes);
  52.  
  53. typedef void __fastcall (__closure *TChartFXChangeType)(System::TObject* Sender, short &nType, short 
  54.     &nRes);
  55.  
  56. typedef void __fastcall (__closure *TChartFXUserScroll)(System::TObject* Sender, int wScrollMsg, int 
  57.     wScrollParam, short &nRes);
  58.  
  59. typedef void __fastcall (__closure *TChartFXGetLegend)(System::TObject* Sender, short nType, short &
  60.     nRes);
  61.  
  62. class __declspec(delphiclass) TChartFX;
  63. class __declspec(pascalimplementation) TChartFX : public Olectrls::TOleControl
  64. {
  65.     typedef Olectrls::TOleControl inherited;
  66.     
  67. private:
  68.     TChartFXLButtonDblClk FOnLButtonDblClk;
  69.     TChartFXRButtonDown FOnRButtonDown;
  70.     TChartFXChangeValue FOnChangeValue;
  71.     TChartFXChangeString FOnChangeString;
  72.     TChartFXChangeColor FOnChangeColor;
  73.     Classes::TNotifyEvent FOnDestroy;
  74.     Classes::TNotifyEvent FOnReadFile;
  75.     TChartFXChangePalette FOnChangePalette;
  76.     TChartFXChangeFont FOnChangeFont;
  77.     Classes::TNotifyEvent FOnReadTemplate;
  78.     TChartFXChangePattern FOnChangePattern;
  79.     TChartFXChangePattPal FOnChangePattPal;
  80.     TChartFXMenu FOnMenu;
  81.     TChartFXChangeType FOnChangeType;
  82.     TChartFXUserScroll FOnUserScroll;
  83.     TChartFXGetLegend FOnGetLegend;
  84.     double __stdcall Get_Value(short index);
  85.     void __stdcall Set_Value(short index, double Value);
  86.     double __stdcall Get_XValue(short index);
  87.     void __stdcall Set_XValue(short index, double Value);
  88.     double __stdcall Get_IniValue(short index);
  89.     void __stdcall Set_IniValue(short index, double Value);
  90.     double __stdcall Get_Const_(short index);
  91.     void __stdcall Set_Const_(short index, double Value);
  92.     Graphics::TColor __stdcall Get_Color(short index);
  93.     void __stdcall Set_Color(short index, Graphics::TColor Value);
  94.     Graphics::TColor __stdcall Get_BkColor(short index);
  95.     void __stdcall Set_BkColor(short index, Graphics::TColor Value);
  96.     double __stdcall Get_Adm(short index);
  97.     void __stdcall Set_Adm(short index, double Value);
  98.     short __stdcall Get_Pattern(short index);
  99.     void __stdcall Set_Pattern(short index, short Value);
  100.     int __stdcall Get_Fonts(short index);
  101.     void __stdcall Set_Fonts(short index, int Value);
  102.     System::AnsiString __stdcall Get_Title(short index);
  103.     void __stdcall Set_Title(short index, const System::AnsiString Value);
  104.     System::AnsiString __stdcall Get_Legend(short index);
  105.     void __stdcall Set_Legend(short index, const System::AnsiString Value);
  106.     System::AnsiString __stdcall Get_SerLeg(short index);
  107.     void __stdcall Set_SerLeg(short index, const System::AnsiString Value);
  108.     System::AnsiString __stdcall Get_KeyLeg(short index);
  109.     void __stdcall Set_KeyLeg(short index, const System::AnsiString Value);
  110.     System::AnsiString __stdcall Get_FixLeg(short index);
  111.     void __stdcall Set_FixLeg(short index, const System::AnsiString Value);
  112.     System::AnsiString __stdcall Get_YLeg(short index);
  113.     void __stdcall Set_YLeg(short index, const System::AnsiString Value);
  114.     System::AnsiString __stdcall Get_KeySer(short index);
  115.     void __stdcall Set_KeySer(short index, const System::AnsiString Value);
  116.     System::AnsiString __stdcall Get_StatusText(short index);
  117.     void __stdcall Set_StatusText(short index, const System::AnsiString Value);
  118.     Graphics::TColor __stdcall Get_RGBFont(short index);
  119.     void __stdcall Set_RGBFont(short index, Graphics::TColor Value);
  120.     short __stdcall Get_HFont(short index);
  121.     void __stdcall Set_HFont(short index, short Value);
  122.     short __stdcall Get_ItemWidth(short index);
  123.     void __stdcall Set_ItemWidth(short index, short Value);
  124.     short __stdcall Get_ItemStyle(short index);
  125.     void __stdcall Set_ItemStyle(short index, short Value);
  126.     Graphics::TColor __stdcall Get_ItemColor(short index);
  127.     void __stdcall Set_ItemColor(short index, Graphics::TColor Value);
  128.     short __stdcall Get_DecimalsNum(short index);
  129.     void __stdcall Set_DecimalsNum(short index, short Value);
  130.     
  131. protected:
  132.     virtual void __fastcall InitControlData(void);
  133.     
  134. public:
  135.     int __stdcall OpenDataEx(short nType, int n1, int n2);
  136.     Word __stdcall CloseData(short nType);
  137.     int __stdcall DblClk(short nType, int lExtra);
  138.     int __stdcall RigClk(short nType, int lExtra);
  139.     int __stdcall Status(short nItems, int lpStatus);
  140.     int __stdcall ShowDialog(short nDialog, int lExtra);
  141.     int __stdcall PrintIt(void);
  142.     int __stdcall Scroll(int wParam, int lParam);
  143.     int __stdcall SetStatusItem(short index, Word bText, short nID, Word bFrame, short nWidth, short nMin
  144.         , short nDesp, int dwStyle);
  145.     int __stdcall Paint(int hDC, short nLeft, short nTop, short nRight, short nBottom, short wAction, int 
  146.         lps);
  147.     int __stdcall SetStripe(short index, double dMin, double dMax, Graphics::TColor rgb);
  148.     int __stdcall Language(const System::AnsiString sResource);
  149.     int __stdcall ExportFile(const System::AnsiString lpszNewValue);
  150.     int __stdcall ImportFile(const System::AnsiString lpszNewValue);
  151.     int __stdcall WriteTemplate(const System::AnsiString lpszNewValue);
  152.     int __stdcall ReadTemplate(const System::AnsiString lpszNewValue);
  153.     int __stdcall CopyData(void);
  154.     int __stdcall CopyBitmap(void);
  155.     HIDESBASE void __stdcall Refresh(void);
  156.     void __stdcall AboutBox(void);
  157.     __property double Value[short index] = {read=Get_Value, write=Set_Value};
  158.     __property double XValue[short index] = {read=Get_XValue, write=Set_XValue};
  159.     __property double IniValue[short index] = {read=Get_IniValue, write=Set_IniValue};
  160.     __property double Const_[short index] = {read=Get_Const_, write=Set_Const_};
  161.     __property Graphics::TColor Color[short index] = {read=Get_Color, write=Set_Color};
  162.     __property Graphics::TColor BkColor[short index] = {read=Get_BkColor, write=Set_BkColor};
  163.     __property double Adm[short index] = {read=Get_Adm, write=Set_Adm};
  164.     __property short Pattern[short index] = {read=Get_Pattern, write=Set_Pattern};
  165.     __property int Fonts[short index] = {read=Get_Fonts, write=Set_Fonts};
  166.     __property System::AnsiString Title[short index] = {read=Get_Title, write=Set_Title};
  167.     __property System::AnsiString Legend[short index] = {read=Get_Legend, write=Set_Legend};
  168.     __property System::AnsiString SerLeg[short index] = {read=Get_SerLeg, write=Set_SerLeg};
  169.     __property System::AnsiString KeyLeg[short index] = {read=Get_KeyLeg, write=Set_KeyLeg};
  170.     __pr